home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crosscountry USA Photo Safari
/
Crosscountry USA Photo Safari.iso
/
Data
/
safari_usa
/
pak00_16bit_f.pk3
/
loader.gl.p
< prev
Wrap
Text File
|
2002-12-23
|
7KB
|
194 lines
{
ChildID = {
GuiAnimation("loader_background") {
AnimationID = "image/loader_background.pcx";
},
GuiLoader("background") {
X = 0;
Y = 0;
state = 1;
ScriptID = Script {
@animate {
int state;
int CurrentFrame;
resid LoadAnim;
LoadAnim = GuiSiblingByName("load_anim");
ResPropAlias(SELF,"state","state");
ResPropAlias(LoadAnim,"CurrentFrame","CurrentFrame");
if (state == 1) {
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65589/*"loading dispatch"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 2) {
ResByName("dispatch.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65590/*"loading map"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 3) {
ResByName("map.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65591/*"loading country map"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 4) {
ResByName("country_map.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65592/*"loading expense report"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 5) {
ResByName("expense.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65593/*"loading photo album"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 6) {
ResByName("photo_album.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65594/*"loading travel log"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 7) {
ResByName("travel_log.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65595/*"loading truck dash"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 8) {
ResByName("help.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65596/*"loading tab: hunger"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 9) {
ResByName("eat.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65597/*"loading tab: fuel"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 10) {
ResByName("fuel.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65598/*"loading tab: load"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 11) {
ResByName("load.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65599/*"loading tab: maintenance"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 12) {
ResByName("maintenance.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65600/*"loading tab: postcards"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 13) {
ResByName("postcard.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65601/*"loading tab: system"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 14) {
ResByName("system.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65602/*"loading tab: timezone"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 15) {
ResByName("timezone.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65603/*"loading tab: sleep"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 16) {
ResByName("sleep.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65604/*"loading laptop"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 17) {
ResByName("dash.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65605/*"loading help sections"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 18) {
ResByName("laptop.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65606/*"loading complete!"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 19) {
ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);
stop;
}
}
};
},
GuiAnimation("load_anim") {
AnimationID = "gui/main_menu/loader/loader.anm";
X = 120;
Y = 340;
State = STOPPED;
},
GuiTextInput("load_header") {
X = 320;
Y = 250;
Width = 185;
Height = 120;
WordWrap = TRUE;
InputDisabled = TRUE;
InputText = Mangle(65607/*"Loading"*/);
FontID = "font/verdana_white_bold_18.tf";
},
GuiTextInput("load_message") {
X = 160;
Y = 50;
Width = 330;
Height = 300;
WordWrap = TRUE;
InputDisabled = TRUE;
FontID = "font/verdana_white_bold_18.tf";
InputText = Mangle(65608/*"You are a wildlife photographer. Your mission is to drive around the country and take pictures of endangered animals. The pictures will remind people to protect these animals."*/);
},
GuiTextInput("load_status") {
X = 350;
Y = 280;
Width = 185;
Height = 120;
WordWrap = TRUE;
InputDisabled = TRUE;
FontID = "font/tab_w_on_g.tf";
}
};
}